import request from '@/utils/request'
import {parseStrEmpty} from "@/utils/lanling";

// 查询列表
export function listIndexApply(query) {
  return request({
    url: '/system/app/index/page',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getIndexApply(id) {
  return request({
    url: '/system/app/index/' + parseStrEmpty(id),
    method: 'get'
  })
}

// 新增
export function addIndexApply(data) {
  return request({
    url: '/system/app/index',
    method: 'post',
    data: data
  })
}

// 修改
export function updateIndexApply(data) {
  return request({
    url: '/system/app/index',
    method: 'put',
    data: data
  })
}

// 删除
export function delIndexApply(id) {
  return request({
    url: '/system/app/index/' + id,
    method: 'delete'
  })
}


